package com.chai.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
/**
 * 1.使用精确扫描包的方式
 * 2.使用排除的方式(excludeFilters),type使用注解类型，class是指明类的类型
 * */
@Configuration
//@ComponentScan({"com.chai.service","com.chai.dao"})
@ComponentScan(value = "com.chai",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = Controller.class
        )
    )
public class SpringConfig {
}
